<template>
	<view class="u-content">
		<view class="list" v-for="(item,index) in basisList" :key="index">
			<view class="regulations">
				<view class="title">
					制定机关:
				</view>
				<view class="cont">
					{{item.LAW_NUMBER}}
				</view>
			</view>
			<view class="regulations">
				<view class="title">
					法规名称:
				</view>
				<view class="cont">
					{{item.LAW_NAME}}
				</view>
			</view>
			<view class="regulations">
				<view class="title">
					条款名称:
				</view>
				<view class="cont">
					{{item.NAME}}
				</view>
			</view>
			<view class="regulations">
				<view class="title">
					条款具体内容:
				</view>
				<view class="cont">
					{{item.CONTENT}}
				</view>
			</view>
		</view>
	</view>
	
</template>

<script>
	export default{
		data () {
			return{
				basisList: [],
				itemCode:''
			}
		},
		onLoad(option){
			this.itemCode = option.itemCode;
			this.selectItemDetail();
		},
		methods:{
			selectItemDetail(){
				uni.showLoading({
					title: '搜索中...',
					mask: true
				});
				this.$ajax({
					url: '/api/wwwBiz/selectItemDetail',
					method: 'POST',
					data:{
						itemCode:this.itemCode
					}
				}).then(res =>{
					if (res.code == 200) {
							this.basisList = res.data.data4;
							console.log(this.basisList)
						}
					}).finally(()=>{
					uni.hideLoading();
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.u-content{
		.list{
			margin: 90rpx 50rpx;
			.regulations{
				margin: 30rpx 0;
				.title{
					font-size: 28rpx;
					line-height: 44rpx;
					color: #999999;
				}
				.cont{
					font-size: 28rpx;
					line-height: 44rpx;
					color: #333333;
				}
			}
		}
		
	}
	
</style>
